<?php
	require(dirname(__FILE__).'/../content/screens.php');
	
	//switch loader for current screen
	function load_screen($scr){
		$path="";
		switch ($scr){
			case SCR_WELCOME:
				$path = '/../content/welcome.php';
				break;
			case SCR_ABOUT_US:
				$path = '/../content/about.xhtml';
				break;
			case SCR_STUDIES:
				$path = '/../content/studies.xhtml';
				break;
			case SCR_TORAH:
				$path = '/../content/torah.xhtml';
				break;				
			case SCR_BNEI_AKIVA:
				$path = '/../content/bnei_akiva.xhtml';
				break;							
			case SCR_CONTACT_US:
				$path = '/../content/contact-us.html';
				break;				
			case SCR_REPORT_US:
				$path = '/../content/report-error.html';
				break;
			case SCR_EQUIPMENT:
				$path = '/../content/equipment.php';
				break;				
			case SCR_STUDENTS:
				$path = '/../content/student_bar.php';
				break;
			case SCR_ROOM_MANAGEMENT:
				$path = '/../content/room-management.php';
				break;
			case SCR_FIND_STUDENT:
				$path = '/../content/students.php';
				break;
			case SCR_ADD_STUDENT:
				$path = '/../content/addStudent.php';
				break;				
			case SCR_MANAGE_STUDENT:
				$path = '/../content/manage_student.php';
				break;
			case SCR_CONTACT_US_ANS:
				$path = '/../content/contactus.php';
				break;
			case SCR_REPORT_US_ANS:
				$path = '/../content/report-error.php';
				break;			
			case SCR_EQUIPMENT_ANS:
				$path = '/../content/equipment_ans.php';
				break;				
			case SCR_MANAGE_EQUIPMENT:
				$path = '/../content/manage_equipment.php';
				break;			
			case SCR_MANAGE_EQUIPMENT_ANS:
				$path = '/../content/manage_equipment_ans.php';
				break;	
			case SCR_ADD_EQUIPMENT:
				$path = '/../content/addEquipment.php';
				break;				
			}
			
			
				require(dirname(__FILE__).$path);
		}
	?>
<head>
<style type="text/css">
#bodyOutertb{
	padding-left:90px;
}
#students
{
	padding-left:0;
}
#tdInnerBody
{
	background-color:#66c;
	-webkit-box-shadow: 5px 5px 5px #222;
	box-shadow: -7px 7px 7px #222;
	
	}
</style>

  <!--
  
<script type="text/javascript" src="jquery/js/jquery-1.4.2.min.js"></script>
	<script language="javascript">
            $(document).ready(function() {
                $("#tdInnerBody").show(2000);		
            });
        </script>
   -->
 
     
  
  <!--
  <script language="javascript">
  		 $(document).ready(function() {
			$("#tdInnerBody").slideUp(500, 
			function (){
				$("#tdInnerBody").slideDown(1000); //Show
			});	
		});
              
  </script>
   -->
 
</head>
<body>
    <br />
    <table width=93% height="440" border="0" id="bodyOutertb">   
                    <tr>  
                        
                        <td width="950" height="440" id="tdInnerBody">
                        	<div style="margin:15px">
                             <?php			 
                                if (isset($GLOBALS['CURRENT_SCREEN'])){
                                    $scr = $GLOBALS['CURRENT_SCREEN'];
                                    load_screen($scr);
                                }
                                
                        ?>
                             </div>
                        </td>
                        <td valign="top"> 
                                <!-- NEWS SCROLLER USES FILES: xmlparser.php,  webticker_lib.js-->
                                        <?php 
                                        $hm = "HNT_1_0"; 
                                        $hm2 = "http://127.0.0.1/WebCourse/HNT_1_0"; 
                                        include "$hm/hnt.php";
                                        ?>	
                                <!-- END CODE -->
                                <!-- FACEBOOK PLUGIN -->
                                        <iframe src="https://www.facebook.com/plugins/like.php?href=http://www.edu-negev.gov.il/bs/akivabs/" 					scrolling="no" frameborder="0" style="border:none; width:150px; height:80px"></iframe> 
                                <!-- END FACEBOOK PLUGIN -->                        
                                                                       
                        </td>
                    </tr>
                </table>                            
</body>